/**
 *  Copyright (c) 2017-2022 Rushang Co.Ltd All Rights Reserved.
 */
package com.rshang.rsdp.bean;

import com.rshang.rsdp.common.status.StatusCode;

/**
 * 功能简介：普通json校验<br/>
 * @author zhangjun
 * @create 2017年7月31日下午1:49:03
 * 
 */
public class Response extends BaseResponse {

	protected String url;//转向url
	
	protected Object body;//响应体
	
	public Response(int code,String msg) {
		this.code = code;
		this.msg = msg;
	}
	
	public Response(String url) {
		this.code = StatusCode.SUCCESS.getCode();
		this.msg = "";
		this.url = url;
	}
	
	public Response(String url, Object body) {
		this.code = StatusCode.SUCCESS.getCode();
		this.msg = "";
		this.url = url;
		this.body = body;
	}

	public Response() {
		super();
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	

	public Object getBody() {
		return body;
	}

	public void setBody(Object body) {
		this.body = body;
	}
	
}
